package 装饰模式;

import 装饰模式.impl.DancingDecorate;
import 装饰模式.impl.ReadingDecorate;
import 装饰模式.impl.Student;

public class Test {
    public static void test(People people){
        people.work();
    }
    public static void main(String[] args) {
        People p = new ReadingDecorate(new DancingDecorate(new Student()));
        test(p);
    }
}
